package com.sy.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("供应商")
public class Supplier {
    @ApiModelProperty("供应商id")
    int id;
    @ApiModelProperty("供应商名称")
    @NotBlank(message = "名称不能为空！")
    String name;
    @ApiModelProperty("供应商编号")
    @NotBlank(message = "供应商编码不能为空！")
    String code;
    @ApiModelProperty("期初应付款")
    double beginMoney;
    @ApiModelProperty("期初预付款")
    double readyMoney;
    @ApiModelProperty("联系人")
    @NotBlank(message = "联系人不能为空！")
    String user;
    @ApiModelProperty("手机号")
    @NotBlank(message = "手机号不能为空！")
    String mobile;
    @ApiModelProperty("座机")
    String phone;
    @ApiModelProperty("QQ/邮箱")
    String qq;
    @ApiModelProperty("联系地址")
    String address;
    @ApiModelProperty("首要联系人")
    String firstUser;
    @ApiModelProperty(value = "企业id")
    @NotNull(message = "企业id不能为空！")
    int eid;

}
